<include file="Public/header" />

<include file="Public/nav" />
<include file="Public/sec_nav" />
<style>
    .clear:after{
        content:"";
        height:0;
        clear:both;
        display:block;
    }
</style>

<form action="{:U('Search/search')}" method="post">
    <div class="row" style="padding-top:10px; width: 99%">
        <div class="col-xs-6" style="padding-right:inherit; text-align:center;">
            <select class="form-control" name="school_id">
                <option value="0">选择店铺类型</option>
                <volist id="vo" name="school">
                    <option value="{$vo.id}">{$vo.school_name}</option>
                </volist>
            </select>
        </div>
        <div class="col-xs-6" style="margin-right: inherit; padding-left: 0.3em; padding-right: inherit">
            <select class="form-control" name="goods_id">
                <option value="0">选择产品类型</option>
                <volist name="goods_type" id="v">
                    <option value="{$v.id}">{$v.type}</option>
                </volist>
            </select>
        </div>
    </div>
    <input type="hidden" name="tag" value="0"/>
    <input type="hidden" name="seller" value="0"/>
    <div class="row" style="padding-top: 1em; padding-bottom: inherit">
        <div class="col-xs-9" style="padding-right: 0.5em;">
            <div class="form-group">
                <input type="text" class="form-control" name="content" placeholder="输入店名、卖家、姓名或者标签">
            </div>
        </div>
        <div class="col-xs-2" style="padding-left: inherit;">
            <button class="btn btn-warning">搜索</button>
        </div>
    </div>

    <div class="row" style="padding-bottom:10px;">
        <div class="col-xs-1"> </div>

        <div class="col-xs-5">
            <div class="radio">
                <label>
                    <input type="radio" name="order_id" value="0" checked>
                    综合排序
                </label>
            </div>
        </div>

        <div class="col-xs-5">
            <div class="radio">
                <label>
                    <input type="radio" name="order_id" value="1">
                    点击量排序
                </label>
            </div>
        </div>
        <div class="col-xs-1">	</div>
    </div>
</form>
<!-- 店铺展示 -->
<volist name="store" id="vo">

    <div   style="width:96%;margin:30px auto;background-color:white;padding-top:10px;border-radius:5px;box-shadow: 0 0 6px #ccc">

        <div class="clear" style="margin:2%">

            <div style="width:20%">
                <div  style="float:left;width:50px;height:50px;border-radius:100%;overflow: hidden">
                    <img src="{$vo.show_pic}" style="width: 100%;" alt=""/>
                </div>
            </div>
            <div style="float:right;height:50px;width:78%">
                <p class="store_name" style="font-size: 22px;margin-bottom:4px;color:#333333">{$vo.store_name}</p>
                <p style="margin-top:4px" >商家类型：<span class="kind">{$vo['school_name']}</span></p>
            </div>
        </div>

        <div style="width:100%;margin-left:2%;overflow:hidden;margin-top:15px;">
            <div style="width:51%;float:left">
                <img style="width:20px;" src="__PUBLIC__/images/tag.png" alt=""/>
                <span style="color:#999999" class="tags"> <php>foreach($vo['tags'] as $v){echo $v['tag_name'].'  ';}</php></span>
            </div>
            <div style="width:49%;float:right">

                <span style="overflow:hidden">店主：<span class="buyer" ><a style="color:#479eff" href="{:U('Person/index')}?person_id={$vo.person_id}">{$vo.nickname}</a></span></span>

            </div>
        </div>
        <div class="shop_infro" style="width:100%;height:50px;background-color: white">
            <div style="width:100%;height:45px;background-color:#fbfbfb;border-top:1px solid #dddddd;padding-top:4px;margin-top:10px;float:right
                ">
                <div style="width:230px;;float:right">
                    <i class="iconfont">&#xe7c4;</i>
                    <!--<img style="width:28px"  src="__PUBLIC__/images/view.png" alt=""/>-->
                    <span style="margin-right: 15px" class="view_count">{$vo.click_num}</span>
                    <!--<img  style="width:24px;margin-left: 15px;" src="__PUBLIC__/images/comments.png" alt=""/>-->
                    <i class="iconfont">&#x3438;</i>
                    <span style="margin-right: 15px" class="comment_count">{$vo.comment_num}</span>

                    <a href="{$vo.link}" style="display: inline-block"><button class="btn btn-warning">进入店铺</button></a>
                </div>
            </div>
        </div>
    </div>
</volist >
<include file="Public/footer" />
<!--<include file="Public/fixed"/>-->